home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
text
/
misc
/
addcr_1_0.lha
/
AddCR.doc
< prev
Wrap
Text File
|
1993-08-16
|
2KB
|
65 lines
AddCR v1.0 by Son Le
~~~~~~~~~~~~~~~~~~~~
Yet another Amiga/IBM text file converter, which (surprise, surprise)
converts Amiga style end-of-lines characters ($0a) to IBM format ($0d,$0a)
or vice versa. It is released into the public domain. I have no rights over
it and cannot be held liable for any damages or incorrect conversion. (;
List of features
~~~~~~~~~~~~~~~~
- should work on all amigas (or at least > wb1.2)
- relatively small (11k)
- extremely fast (main loop is written in optimised assembly)
- works in low memory situations (min. memory requirement = 12288 bytes)
- progress indicator
- when converting to Amiga format, only ($0d,$0a) characters are converted
to $0a (all $xx,$0a are left alone - where $xx <> $0d).
- when converting to IBM format, ($0d,0a) pairs are left alone.
- includes source (compiled with SAS/C v6.3)
Usage
~~~~~
AddCR can only be invoke in a CLI shell. Typing "AddCR" or "AddCR ?" will
bring up the usage help info.
10.RAM:> AddCR ?
Usage: AddCR <switches> files..
where <switches> is of the following
-a Convert file to AMIGA format [CR].
-b Convert file to IBM format [LF][CR].
-q Quiet processing of file.
-s Save backup. (Rename original file to '*.bak')
Default: -b
AddCR defaults to converting Amiga text to IBM format.
AddCR outputs to the current directory and defaults to file replacement.
eg. after text has been convert, it will be saved with the original
filename, so if the current directory is the same directory where the
original file resides, then it will be overwritten. If you don't want this
to happen, use the "-s" option.
Progressive indicator can be turned off by the "-q" option. (Also speeds up
conversion by a very small amount, almost negligible)
The Programmer
~~~~~~~~~~~~~~
If you want to contact me for any reason send email to:
s924723@minyos.xx.rmit.oz.au OR
Son_Le@guru.apana.org
One last thing, if you can improve the assembly conversion routines by
any number of cycles please email me the results!